from flask  import Flask
from flask_sqlalchemy import SQLAlchemy
import redis
from flask import Session
from flask import session
from config import Config
def create_app():
    app=Flask(__name__)

    app.config.from_object(Config)
    db=SQLAlchemy(app)
    Session(app)
    redis_store=redis.StrictRedis(  host=Config.REDIS_HOST,port=Config.REDIS_PORT)
    return app